<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
  <title>Description of statusLogging</title>
  <meta name="keywords" content="statusLogging">
  <meta name="description" content="This function pushes the text in log_text to the log window specified by">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html &copy; 2005 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../../m2html.css">
  <script type="text/javascript">
    if (top.frames.length == 0) { top.location = "../../index.html"; };
  </script>
</head>
<body>
<a name="_top"></a>
<!-- ../menu.html VMT_4.0_dev --><!-- menu.html utils -->
<h1>statusLogging
</h1>

<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="box"><strong>This function pushes the text in log_text to the log window specified by</strong></div>

<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="box"><strong>function statusLogging(log_listbox_handle, log_text) </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="fragment"><pre class="comment"> This function pushes the text in log_text to the log window specified by
 its handle log_listbox_handle. This function appends the log window text.
 
 The input log_text should be formated as a cell array, containing each
 line of text as a row in the array. Max length of a line of text is 63
 characters.

 Last modified: 2013/03/12 (FLE)</pre></div>

<!-- crossreference -->
<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
This function calls:
<ul style="list-style-image:url(../../matlabicon.gif)">
</ul>
This function is called by:
<ul style="list-style-image:url(../../matlabicon.gif)">
</ul>
<!-- crossreference -->



<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function statusLogging(log_listbox_handle, log_text)</a>
0002 <span class="comment">% This function pushes the text in log_text to the log window specified by</span>
0003 <span class="comment">% its handle log_listbox_handle. This function appends the log window text.</span>
0004 <span class="comment">%</span>
0005 <span class="comment">% The input log_text should be formated as a cell array, containing each</span>
0006 <span class="comment">% line of text as a row in the array. Max length of a line of text is 63</span>
0007 <span class="comment">% characters.</span>
0008 <span class="comment">%</span>
0009 <span class="comment">% Last modified: 2013/03/12 (FLE)</span>
0010 
0011 <span class="comment">% Get the current log window contents</span>
0012 log_contents = get(log_listbox_handle,<span class="string">'string'</span>);
0013 
0014 <span class="comment">% Append new log text</span>
0015 l = size(log_text,1)-1;
0016 log_contents = vertcat(log_contents,log_text);
0017 
0018 <span class="comment">% Push updated log to the log window</span>
0019 set(log_listbox_handle,<span class="string">'string'</span>,log_contents)
0020 
0021 <span class="comment">% Make the last line the &quot;active&quot; line. This is to aid readability</span>
0022 set(log_listbox_handle,<span class="string">'value'</span>,length(log_contents))
0023 
0024 <span class="comment">% [EOF] statusLogging</span>
0025 
0026</pre></div>
<hr><address>Generated on Thu 21-Mar-2013 09:32:01 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> &copy; 2005</address>
</body>
</html>